<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
	<script type="text/javascript">
		function cl(){
			var preUrl = window.location.href
			location.href = "./login.html?preUrl=" + preUrl;
		}
	</script>
	<h1>Test</h1>
	<button type="" onclick=cl()>login</button>
</body>
</html>